package com.ssy.lingxi.platform.manage.api.feign.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.EnableStatusReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.IdReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.OnlineServiceAddReq;
import com.ssy.lingxi.platform.manage.api.model.dto.onlineservice.OnlineServiceUpdateReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 在线客服设置数据同步-PAAS接口
 * @author wyx
 * @version 2.0.0
 * @date 2021-11-16
 */
@FeignClient(value = "platform-manage-service")
public interface OnlineServicePASSControllerFeign {
    @RequestMapping(value = "/manage/paas/online/service/add", method = RequestMethod.POST)
    Wrapper<Void> add(@RequestBody OnlineServiceAddReq req);

    @RequestMapping(value = "/manage/paas/online/service/update", method = RequestMethod.POST)
    Wrapper<Void> update(@RequestBody OnlineServiceUpdateReq req);

    @RequestMapping(value = "/manage/paas/online/service/enable", method = RequestMethod.POST)
    Wrapper<Void> enable(@RequestBody EnableStatusReq req);

    @RequestMapping(value = "/manage/paas/online/service/delete", method = RequestMethod.POST)
    Wrapper<Void> delete(@RequestBody IdReq req);

    @RequestMapping(value = "/manage/online/service/find/config", method = RequestMethod.GET)
    Wrapper<?> findConfig();
}
